import request from '@/utils/request'



// 检查ticket方法
export function checkTicket(ticket) {
  let url = '/canines/cas?ticket='+ticket;
  console.log("提交："+ticket,url,"url");
  return request({
    url: url,
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 重新检查ticket方法
export function reCheckTicket() {
   console.log("提交reCheckTicket：");
  return request({
    url: '/canines/cas',
    headers: {
      isToken: false
    },
    method: 'get'
  })
}

// 获取用户详细信息
export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}

// 退出方法
export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
